{php load()->func('tpl')}
<input type="hidden" name="reply_id" value="{$reply['id']}">
<div class="panel panel-default">
    <div class="panel-heading">
        系统设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 回复图文标题</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="title" class="form-control" placeholder="" name="title" value="{$reply['title']}">
            </div>
				<div class="help-block">图文回复标题</div>			
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 回复封面图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('picurl', $reply['picurl'])}
            </div>
				<div class="help-block">图文回复图片</div>			
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 回复图文说明</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="order_info" class="form-control" placeholder="" name="order_info" value="{$reply['order_info']}">
            </div>
        </div>	
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 机构名称</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="department" class="form-control" placeholder="" name="department" value="{$reply['department']}">
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 顶部图片1</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('info_picurl', $reply['info_picurl'])}
            </div>
        </div>	
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 顶部图片2</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('info_picurl2', $reply['info_picurl2'])}
            </div>
        </div>      	
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 联系电话</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="cosmtment_phone" class="form-control" placeholder="" name="cosmtment_phone" value="{$reply['cosmtment_phone']}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 机构地址</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="address" class="form-control" placeholder="" name="address" value="{$reply['address']}">
            </div>
        </div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">机构坐标</label>
			<div class="col-sm-9 col-xs-12" >
				{php echo tpl_form_field_coordinate('baidumap',$reply)}
			</div>
		</div>		
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 机构简介</label>
            <div class="col-sm-9 col-xs-12">
               	<!-- <input type="text" id="cosmtment_info" class="form-control" placeholder="" name="cosmtment_info" value="{$reply['cosmtment_info']}"> -->
                <textarea style="height:500px;" class="span6 richtext-clone" name="cosmtment_info" id="cosmtment_info"cols="200">{$reply['cosmtment_info']}</textarea>
            </div>
        </div>			
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 预约家教页头部图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('order_picurl', $reply['order_picurl'])}
            </div>
        </div>			
        
	</div>
</div>

<script type="text/javascript">
require(['util'],function(util){
    util.editor($('.richtext-clone')[0]) ;
});
</script>
